package bb.lanxing.lib.devices.sgsettingentity.routebook;

import java.io.Serializable;

import bb.lanxing.lib.devices.sgsettingentity.IDeletable;
import bb.lanxing.lib.devices.sprint.utils.SprintFileHelper;
import kotlin.jvm.internal.Intrinsics;

public final class Route implements IDeletable, Serializable {
    private String bin_url;
    private boolean checked;
    private int gain;
    private String gpx_url;
    private String json_url;
    private String name;
    private String rid;
    private double length;
    private int source;
    private String type;
    private int update_at;
    private String version;
    private String ext;

    public Route(String bin_url, String gpx_url, String json_url, String name, String rid, double length, String type,
                 Integer update_at, String version, boolean checked, int source, int gain) {
        this.bin_url = bin_url;
        this.gpx_url = gpx_url;
        this.json_url = json_url;
        this.name = name;
        this.rid = rid;
        this.length = length;
        this.type = type;
        this.update_at = update_at;
        this.version = version;
        this.checked = checked;
        this.source = source;
        this.gain = gain;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }
    /*
     * public int hashCode() { String str = this.bin_url; int i = 0; int hashCode = (str == null ? 0 : str.hashCode()) *
     * 31; String str2 = this.gpx_url; int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31; String
     * str3 = this.json_url; int hashCode3 = (hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31; String str4 =
     * this.name; int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31; String str5 = this.rid; int
     * hashCode5 = (hashCode4 + (str5 == null ? 0 : str5.hashCode())) * 31; Integer num = this.size; int hashCode6 =
     * (hashCode5 + (num == null ? 0 : num.hashCode())) * 31; String str6 = this.type; int hashCode7 = (hashCode6 +
     * (str6 == null ? 0 : str6.hashCode())) * 31; Integer num2 = this.update_at; int hashCode8 = (hashCode7 + (num2 ==
     * null ? 0 : num2.hashCode())) * 31; String str7 = this.version; if (str7 != null) { i = str7.hashCode(); } int i2
     * = (hashCode8 + i) * 31; boolean z = this.checked; if (z) { z = true; } int i3 = z ? 1 : 0; int i4 = z ? 1 : 0;
     * return ((((i2 + i3) * 31) + this.source) * 31) + this.gain; }
     */

    public final Route copy(String str, String str2, String str3, String str4, String str5, Integer num, String str6,
            Integer num2, String str7, boolean z, int i, int i2) {
        return new Route(str, str2, str3, str4, str5, num, str6, num2, str7, z, i, i2);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Route)) {
            return false;
        }
        Route route = (Route) obj;
        return Intrinsics.areEqual(this.bin_url, route.bin_url) && Intrinsics.areEqual(this.gpx_url, route.gpx_url)
                && Intrinsics.areEqual(this.json_url, route.json_url) && Intrinsics.areEqual(this.name, route.name)
                && Intrinsics.areEqual(this.rid, route.rid) && this.length == route.length
                && Intrinsics.areEqual(this.type, route.type) && Intrinsics.areEqual(this.update_at, route.update_at)
                && Intrinsics.areEqual(this.version, route.version) && this.checked == route.checked
                && this.source == route.source && this.gain == route.gain;
    }

    public String toString() {
        return "Route(bin_url=" + this.bin_url + ", gpx_url=" + this.gpx_url + ", json_url=" + this.json_url + ", name="
                + this.name + ", rid=" + this.rid + ", size=" + this.length + ", type=" + this.type + ", update_at="
                + this.update_at + ", version=" + this.version + ", checked=" + this.checked + ", source=" + this.source
                + ", gain=" + this.gain + ')';
    }

    public final String getBin_url() {
        return this.bin_url;
    }

    public final void setBin_url(String str) {
        this.bin_url = str;
    }

    public final String getGpx_url() {
        return this.gpx_url;
    }

    public final void setGpx_url(String str) {
        this.gpx_url = str;
    }

    public final String getJson_url() {
        return this.json_url;
    }

    public final void setJson_url(String str) {
        this.json_url = str;
    }

    public final String getName() {
        return this.name;
    }

    public final void setName(String str) {
        this.name = str;
    }

    public final String getRid() {
        return this.rid;
    }

    public final void setRid(String str) {
        this.rid = str;
    }

    public final double getLength() {
        return this.length;
    }

    public final void setLength(int num) {
        this.length = num;
    }

    public final String getType() {
        return this.type;
    }

    public final void setType(String str) {
        this.type = str;
    }

    public final int getUpdate_at() {
        return this.update_at;
    }

    public final void setUpdate_at(int num) {
        this.update_at = num;
    }

    public final String getVersion() {
        return this.version;
    }

    public final void setVersion(String str) {
        this.version = str;
    }

    public final boolean getChecked() {
        return this.checked;
    }

    public final void setChecked(boolean z) {
        this.checked = z;
    }

    public final int getSource() {
        return this.source;
    }

    public final void setSource(int i) {
        this.source = i;
    }

    public final int getGain() {
        return this.gain;
    }

    public final void setGain(int i) {
        this.gain = i;
    }

    @Override
    public String getFileNameForDelete() {
        return this.rid + SprintFileHelper.NAV_FILE_STUFFIX;
    }
}
